package com.itheima.Mapper;

import com.itheima.pojo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderMapper {



    List<Order> list(OrderQueryParam queryParam);


    Order get(Integer id);
    void insert(Order order);
    void update(Order order);
    void updateStatus(Integer id, String status);
    void delete(Integer id);

    void updatePaymentStatus(Integer id, PaymentStatus paymentStatus);

    List<OrderVO> listForUser(UserOrderQueryParam queryParam);


    List<Order> selectOrdersListById(Integer userId);
}